<!DOCTYPE html>
<html>
<head>
<title>商城首页</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta name="viewport" id="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no"/>
<link href="/css/reset.css" rel="stylesheet" type="text/css">
<link href="/css/index.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="near-box">
      <!--头部开始-->
	  <div class="yx-index-top">
	  	 <div class="index-top-box1">
	  	 	<span class="index-top-img1"><img src="/images/scan.png" alt=""></span>
	  	 	<span class="index-top-text1">地址</span>
	  	 </div>
	  	 <div class="index-top-box2">
	  	 	 <span class="fresh-toptext1">北京石景山</span>
	  	 	 <span class="fresh-topimg1"></span>
	  	 </div>
	  	 <a href="search.html" class="index-top-box1">
	  	 	<span class="index-top-img1"><img src="/images/search3.png" alt=""></span>
	  	 	<span class="index-top-text1">搜索</span>
	  	 </a>
	  </div>
	  <!--头部结束-->
      <div class="index-bigbox">
		  <!--轮播开始-->
		  <div id="slideBox" class="slideBox">
			<div class="bd" id="bd">
				<ul>
					<li>
						<a class="pic" href="goods-details.html?productId=518"><img src="http://images.zxjshop.cn/images/banner-img1.jpg"/></a>
					</li>
					<li>
						<a class="pic" href="goods-details.html?productId=519"><img src="http://images.zxjshop.cn/images/banner-img2.jpg"/></a>
					</li>
					<li>
						<a class="pic" href="goods-details.html?productId=435"><img src="http://images.zxjshop.cn/images/banner-img3.jpg"/></a>
					</li>
					<li>
						<a class="pic" href="goods-details.html?productId=520"><img src="http://images.zxjshop.cn/images/banner-img4.png"/></a>
					</li>
				</ul>
			</div>
			<div class="hd">
				<ul></ul>
			</div>
		  </div>
		  <!--轮播开始-->
		  <!--分类导航开始-->
          <div class="classify-menu">
          	  <a href="discounts.html?catId=26" class="classify-menu-box1">
          	  	 <span class="classify-menu-img1"><img src="/images/trophy.png" alt=""></span>
          	  	 <span class="classify-menu-text1">葡提浆果</span>
          	  </a>
          	  <a href="discounts.html?catId=25" class="classify-menu-box1">
          	  	 <span class="classify-menu-img1 img-color2"><img src="/images/package.png" alt=""></span>
          	  	 <span class="classify-menu-text1">西瓜蜜瓜</span>
          	  </a>
          	  <a href="discounts.html?catId=28" class="classify-menu-box1">
          	  	 <span class="classify-menu-img1 img-color3"><img src="/images/grass.png" alt=""></span>
          	  	 <span class="classify-menu-text1">干果果汁</span>
          	  </a>
          	  <a href="discounts.html?catId=30" class="classify-menu-box1">
          	  	 <span class="classify-menu-img1 img-color4"><img src="/images/diamond.png" alt=""></span>
          	  	 <span class="classify-menu-text1">果蓝礼盒</span>
          	  </a>
          </div>
		  <!--分类导航结束-->
		  <!--品牌特卖开始-->
		  <div class="brand-box1">
		  	  <a href="list.html?catId=23"><span class="brand-text1">芒橙柑柚</span>
		  	  		<span class="brand-img1"></span>
			  </a>
		  </div>
		  <div class="special-sale-box1">
		  	 <a href="goods-details.html?productId=543"><span class="special-sale-box2"><img src="http://images.zxjshop.cn/images/aabb5456-9d88-496e-b97f-84462368650c.jpg" alt=""></span></a>
		  	 <a href="goods-details.html?productId=547"><span class="special-sale-box2"><img src="http://images.zxjshop.cn/images/69d429b9-a211-4960-a138-a35598217108.jpg" alt=""></span></a>
		  	 <a href="goods-details.html?productId=555"><span class="special-sale-box2"><img src="http://images.zxjshop.cn/images/30a54aa3-0573-4c60-bd75-b50a1c768b34.jpg" alt=""></span></a>
		  </div>
		  <!--品牌特卖结束-->
		  <!--优选水果开始-->
		  <div class="brand-box1">
			  <a href="list.html?catId=24"> <span class="brand-text1">佳沛专区</span>
		  	  	<span class="brand-img1"></span>
			  </a>
		  </div>
		  <div class="special-sale-banner">

		  </div>
		  <div class="special-sale-box3">
		  	 <div class="special-sale-box4">
				 <a href="goods-details.html?productId=423">
					 <span class="special-sale-img1"><img src="http://images.zxjshop.cn/images/54201b48-8abd-4543-a80f-6f8bbc515e5a.jpg" alt=""></span>
					 <span class="special-sale-tbox">A级-佳沛金奇异果（大）1个</span>
					 <div class="special-sale-tbox2"></div>
					 <span class="special-sale-text2">￥19.9 <i>￥23</i></span>
				 </a>
		  	 </div>
		  	 <div class="special-sale-box4">
				 <a href="goods-details.html?productId=424">
					 <span class="special-sale-img1"><img src="http://images.zxjshop.cn/images/f1893ffd-a870-4fd7-9c0a-a567b20df530.jpg" alt=""></span>
					 <span class="special-sale-tbox">A级-佳沛金奇异果（大）--1份/4个</span>
					 <div class="special-sale-tbox2"></div>
					 <span class="special-sale-text2">￥74.5 <i>￥100</i></span>
				 </a>
		  	 </div>
		  	 <div class="special-sale-box4">
				 <a href="goods-details.html?productId=426">
					 <span class="special-sale-img1"><img src="http://images.zxjshop.cn/images/07882e6b-14c2-4911-ae60-2de263cd1f8d.jpg" alt=""></span>
					 <span class="special-sale-tbox">【整件装】A级-佳沛金奇异果（大）1件/22个</span>
					 <div class="special-sale-tbox2"></div>
					 <span class="special-sale-text2">￥409.8 <i>￥500.8</i></span>
				 </a>
		  	 </div>
		  </div>
		  <!--优选水果结束-->
		  <!--酒水饮料开始-->
		  <div class="brand-box1">
			  <a href="list.html?catId=31">
				  <span class="brand-text1">百果大全</span>
				  <span class="brand-img1"></span>
			  </a>
		  </div>
		  <div class="special-sale-banner">

		  </div>
		  <div class="special-sale-box3">
		  	 <div class="special-sale-box4">
				 <a href="goods-details.html?productId=465">
					 <span class="special-sale-img1"><img src="http://images.zxjshop.cn/images/144db7d5-379f-4d01-b671-514b452ae288.jpg" alt=""></span>
					 <span class="special-sale-tbox">B级-泰国椰青（中）1个/约800g</span>
					 <div class="special-sale-tbox2"><span class="special-sale-text1">买一赠一</span></div>
					 <span class="special-sale-text2">￥13.9 <i>￥15</i></span>
				 </a>
		  	 </div>
		  	 <div class="special-sale-box4">
				 <a href="goods-details.html?productId=484">
					 <span class="special-sale-img1"><img src="http://images.zxjshop.cn/images/29748867-4d52-442c-81b6-1d60a9fccb95.jpg" alt=""></span>
					 <span class="special-sale-tbox">稀有-125g盒装怡颗莓国产蓝莓王1盒</span>
					 <div class="special-sale-tbox2"></div>
					 <span class="special-sale-text2">￥36.9 <i>￥38</i></span>
				 </a>
		  	 </div>
		  	 <div class="special-sale-box4">
				 <a href="goods-details.html?productId=496">
					 <span class="special-sale-img1"><img src="http://images.zxjshop.cn/images/1b4f2ed8-dc14-414a-927e-0b732e937a23.jpg" alt=""></span>
					 <span class="special-sale-tbox">【维C多多】1份/约800g</span>
					 <div class="special-sale-tbox2"></div>
					 <span class="special-sale-text2">￥47.0 <i>￥48</i></span>
				 </a>
		  	 </div>
		  </div>
		  <!--酒水饮料结束-->
          
      </div>
      <!--bigbox结束-->
      <div class="kaola-bottom">
		<a href="index.html" class="kaola-bottom-box1">
			<span class="kaola-bottom-img1"><img src="/images/home.png"></span>
			<span class="kaola-bottom-text1 text2">首页</span>
		</a>
		<a href="classify.html" class="kaola-bottom-box1">
			<span class="kaola-bottom-img1"><img src="/images/search3.png"></span>
			<span class="kaola-bottom-text1">分类</span>
		</a>
		<a href="shoping-cart.html" class="kaola-bottom-box1">
			<span class="kaola-bottom-img1"><img src="/images/shop-cart1.png"></span>
			<span class="kaola-bottom-text1">购物车</span>
		</a>
		<a href="personal-center.html" class="kaola-bottom-box1">
			<span class="kaola-bottom-img1"><img src="/images/people1.png"></span>
			<span class="kaola-bottom-text1">我的</span>
		</a>
	</div>
</div>
<script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/js/TouchSlide.1.1.js"></script>
<script type="text/javascript" src="/js/scrolltopcontrol.js"></script>
<script type="text/javascript" src="js/mlayer.min.js"></script>
<script>
	TouchSlide({ 
			slideCell:"#slideBox",
			titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
			mainCell:".bd ul", 
			effect:"leftLoop", 
			autoPage:true,//自动分页
			autoPlay:true, //自动播放
		});


	$(function(){
		//判断是否是手机
		var mobile_flag = isMobile();
		if(mobile_flag){

		}else{
			mlayer.msg({
				content: '为了更好地体验效果，请你使用手机端打开，或使用浏览器开发模式',
				time: 5
			});
		}
	})

	function isMobile() {
		var userAgentInfo = navigator.userAgent;

		var mobileAgents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];

		var mobile_flag = false;

		//根据userAgent判断是否是手机
		for (var v = 0; v < mobileAgents.length; v++) {
			if (userAgentInfo.indexOf(mobileAgents[v]) > 0) {
				mobile_flag = true;
				break;
			}
		}
		var screen_width = window.screen.width;
		var screen_height = window.screen.height;

		//根据屏幕分辨率判断是否是手机
		if (screen_width < 500 && screen_height < 800) {
			mobile_flag = true;
		}
		return mobile_flag;
	}

</script>
</body>
</html>